package com.hls.demo;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.hls.dao.UserDao;
import com.hls.entity.UserInfo;


/**
 * Hello world!
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml" })
public class AppTest 
{
    @Autowired
    UserDao userDao;
    
    @Test
    public void getName()
    {
        System.out.println("123");
        UserInfo userinfo= new UserInfo();
        userDao.select(1);
    }
    
}
